<?php

declare(strict_types=1);

namespace App\Request;

class PointsRankingRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        $rules = [
            'ranking' => [
                'month' => 'required|integer',
            ],
            'get_ranking_data' => [
                'level' => 'required|string',
                'month' => 'required|integer',
            ],
        ];
        return $this->useRule($rules);
    }

    public function attributes(): array
    {
        return [
            'month' => '月份',
        ];
    }
}
